package Com.sct;

public class PC {

	public CPU cpu;
	public HardDisk HD;
	public void setSpeed(CPU cpu) {
		this.cpu = cpu;
	}
	public void setAoumnt(HardDisk HD) {
	    this.HD = HD;
	}
	public void show() {
		System.out.println("CPU的速度是"+this.cpu.getSpeed()+" "+"硬盘的容量是"+this.HD.getAmount()+"");
	}
}
